package com.jy.api.signUpReq.stock;

import com.jy.api.domain.ProductMold;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * Created by xiaohua on 2018/7/11.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class InventoryReqData {

    private  long id;
    //请求参数  店铺ID
    private String storeId;
    //商品ID
    private String productId;
    //库存名字
    private String name;
    //规格
    @NotNull(message = "规格不能为空")
    private int capacity;

    //区分是原料还是商品
    private ProductMold mold = ProductMold.PRODUCT;

    private int unitId;




}
